lcGetDrwPreview Home

Retrieves drawing's preview image from a file, without creating drawing object and reading entire file.

 int lcGetDrwPreview (
   LPCWSTR szFileName,
   BYTE* pOutDIB
 );

Parameters
szFileName
  Drawing's filename.
pOutDIB
  Pointer to a buffer that will receive preview image. The image format is Windows BMP.
If NULL specified then function will not fill the buffer, but only return image data size (number of bytes).

Return Value

  Size of the preview image data (number of bytes).

See Also

  Code sample